import request from '@/util/request'

// 班级查询
export const getClassAPI = (params) => {
  return request.get('/admin/class', { params })
}

// 班级添加
export const addClassAPI = (data) => {
  return request.post('/admin/class', data)
}

// 班级更新
export const updateClassAPI = (data) => {
  return request.put('/admin/class', data)
}

// 班级删除
export const deleteClassAPI = (params) => {
  return request.delete('/admin/class', { params })
}
